package com.p2p.front.dal.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Update;

import com.p2p.base.dao.BaseMapper;
import com.p2p.base.model.P2PRecharge;
import com.p2p.base.page.PageVo;

/**
 * leiwen@yiqihao.com
 */
public interface RechargeDao extends BaseMapper {

	List<Map<String, Object>> listPage(PageVo form);

	void add(P2PRecharge p2pRecharge);
	
	@Update("UPDATE  p2p_recharge SET uptime=UNIX_TIMESTAMP(NOW())*1000,status=1 WHERE  status=11 AND addtime<(UNIX_TIMESTAMP(NOW())*1000-1000*3600)")
	int updateForOverTime();
}
